package cn.hanyx.vlog.bussiness.feign;

import cn.hanyx.vlog.api.dto.ResponseObject;
import cn.hanyx.vlog.api.vo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * StorageFeign
 *
 * @author hanyx
 * @date 2021/11/28
 */
@FeignClient(value = "storage-service")
@RequestMapping("/storage")
public interface StorageFeign {

    @PutMapping("/order")
    public ResponseObject updateByOrder(@RequestBody Order order);
}
